package com.abc.cloud.service;

import com.abc.cloud.dto.perms.PermsCategory;
import com.abc.cloud.dto.perms.PermsTree;
import com.abc.cloud.vo.perms.PermsSave;
import com.abc.cloud.vo.perms.PermsUpdate;
import com.baomidou.mybatisplus.extension.service.IService;
import com.abc.cloud.common.utils.PageUtil;
import com.abc.cloud.entity.PermsEntity;

import java.util.List;
import java.util.Map;

/**
 * 权限表
 *
 * @author LiJunXi
 * @email 2770063826@qq.com
 * @date 2023-11-05 10:18:14
 */
public interface PermsService extends IService<PermsEntity> {

    PageUtil queryPage(Map<String, Object> params);

    List<String> queryUserPermsList(Long userId);

    List<PermsEntity> queryPermsList();

    PermsEntity getPermsInfoById(Long menuId);

    PermsEntity savePermsInfo(PermsSave menuSave);

    PermsEntity updatePermsInfo(PermsUpdate menuUpdate);

    Boolean deletePerms(Long menuId);

    List<PermsTree> getPermsList();

    List<PermsCategory> getPermsCategory();

}

